home *** CD-ROM | disk | FTP | other *** search
- PadIt 3.0
- By: George Spafford
- August 28, 1991
-
- Purpose:
-
- To convert variable length record formats to fixed length
- record formats by either the user specifying the desired fixed
- length or the computer analyzing the data file, selecting the
- longest record and then padding all other records with spaces
- to equal lengths.
-
- Procedure:
-
- With Version 3.0, users have a much wider range of options available
- to them on the command line. PAD can be invoked as follows:
-
- PAD /S:source /T:target /A /L:nnn /D /N /R
-
- /S:source "source" is the source file
-
- /T:target "target" is the destination file
- You can bypass this if you specify the /R switch.
-
- If /S: and /T: have the same file names, the /R replace
- option is assumed. See /R for further details.
-
- /A This option instructs pad to read the file once, determine
- what the maximum record length is in the file and then
- pad all other records to that length thus creating a fixed
- length file format.
-
- /L:nnn Here, the user can specify the record length. This is handy
- when the user needs a record length that is longer than any
- of the source records. "nnn" is the desired length of the
- output records in terms of bytes (characters).
-
- /A or /L:nnn must be specified on the command line or the
- menu will appear and ask you which you want to do.
-
- /D This switch will cause the program to delete the source file
- once the destination file has been created (completely, in
- other words, for a while both files will exist on the disk).
-
- /N This switch will cause data records to be streamed to the
- disk. In other words, CR/LF record delimitters will be
- bypassed and the records will be written sequentially to the
- output file.
-
- /R This switch will instruct the program to replace the source
- data with the new data once the program has finished. What
- happens is that PAD writes a temporary file "PAD$$$.TMP" to
- the disk with all of the converted records, it then deletes
- the source file, copies the temporary file to the source file
- and it then deletes the temporary file.
-
- Examples:
-
- The following command reads in FIXED.TXT, automatically determines the
- longest record length in it and then writes the changes to FIXED.FIX
-
- PAD /S:Fixed.txt /T:Fixed.fix /a
-
- The next example modifies the source file with a user-defined length
- of 128 bytes.
-
- PAD /S:FIXED.TXT /R /L:128
-
- The next example will read FIXED.TXT in, determine the length it needs,
- write it to the output file and then delete the source.
-
- PAD /S:FIXED.TXT /T:FIXED.FIX /A /D
-
- The program can still be invoked by typing only PAD and then answering the
- questions as to the filenames and how you wish to set the record lengths.
- However, the menus do not have the file manipulation options that the command
- line does. Note, you can mix command line options and menus.
-
- I hope this program helps you evaluate some of your problems
- or even makes some solutions/benefits clear. This program is SHAREWARE.
- IT IS NOT PUBLIC DOMAIN. If you find that this program aids you, you are
- required ethically and legally to register it after a 30 day evaluation period.
- This software is priced at $5 for each concurrently used copy in an
- organization.
-
- Sincerely,
-
- George Spafford
- 3001 LakeShore Drive, #329
- St. Joseph, MI 49085
-
- Data: (616) 468-5026 Queued Access BBS 19200-8-N-1
- FIDOnet: 1:227/250
-
- And now for the unpleasantries:
-
-
- PADIT IS DISTRIBUTED AS IS. THE AUTHOR (GEORGE SPAFFORD)
- MAKES NO WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED,
- INCLUDING BUT NOT LIMITED TO TO WARRANTIES OF MERCHANTABILITY
- OR FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THIS
- SOFTWARE AND DOCUMENTATION. IN NO EVENT SHALL THE AUTHOR BE
- LIABLE FOR ANY DAMAGES, INCLUDING LOST PROFITS, LOST SAVINGS,
- OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
- OF THE USE OF OR THE INABILITY TO USE THIS PROGRAM.
-
-
- ----------------------------------------------------------------
-
- Is it just me, or do all of the disclaimers look the same??
- (At least mine all look the same)
-
- ----------------------------------------------------------------
-
-
- Other Products:
-
-
- Cache Test Find out just how much your cache really
- helps!
-
- CutIt Parse streamed files by x number of bytes
- and add a CR/LF at the end.
-
- PadIt Convert Variable length records to a Fixed
- length format.
-